# class P():
#     age  = 18
#     height = 180
#     gender = "男"
#     def __init__(self):
#         self.a = 10
#         self.b = 5
#
#     def eat(self):
#         self.c =10
#         print("--------",self.a)
#         print("--------", self.b)
#     def sleep(self):
#         print("aaa",self.c)
# p=P()
# p.eat()
# p.sleep()

def AA(self):
    self.a = 10


def BB(self):
    print(self.a)
b=AA()
b.BB()